package day021.homework.p1;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class Test {
    public static void main(String[] args) throws IOException {
        Student s = new Student("jack", 20, "男");

        ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("D:\\ideaProjects\\javase_code\\study-practice\\src" +
                "\\day021\\homework\\p1\\stu.txt"));

        oos.writeObject(s);
        oos.close();
    }
}
